<template>
  <view>
    <my-login v-if="!token"></my-login>
    <my-activity-detail v-else :activityOptions="activityOptions"></my-activity-detail>
  </view>
</template>

<script>
  import {
    mapState
  } from 'vuex'
  export default {
    data() {
      return {
        activityOptions: {},
      };
    },
    onLoad(options) {
      // 将路由参数保存到 data 中
      this.activityOptions = options;
    },
    computed: {
      ...mapState('my_user', ['token']),
    },
    methods: {},
  }
</script>

<style lang="scss">

</style>
